package zjt.system1;

import java.util.Arrays;

public class Demo1 {
    public static void main(String[] args) {
       // System.out.println(System.currentTimeMillis());
        int[] arr = {1,3,4,5,6};
        int[] arr2 = new int[6];
        int index = 3;
        System.arraycopy(arr,index+1,arr,index,arr.length-(index+1));
        arr[arr.length-1] = 0;
        System.out.println(Arrays.toString(arr));
    }
}
